﻿using WeDonekRpc.Helper.Validate;

namespace Shop.RemoteModel.GoodsSpec.Model
{
    public class GoodsSpecAdd : GoodsSpecSet
    {
        /// <summary>
        /// 商品ID
        /// </summary>
        [NumValidate("shop.goods.id.null", 1)]
        public long GoodsId { get; set; }
        /// <summary>
        /// 规格组ID
        /// </summary>
        [NumValidate("shop.goods.spec.group.id.null", 1)]
        public long GroupId { get; set; }

        /// <summary>
        /// 规格组ID
        /// </summary>
        [NumValidate("shop.goods.spec.template.id.error", 0)]
        public long TemplateId { get; set; }
    }
}
